package healththink



import grails.test.mixin.*
import org.junit.*

/**
 * See the API for {@link grails.test.mixin.web.ControllerUnitTestMixin} for usage instructions
 */
//@TestFor(FacilityAttributeController)
class AttributeControllerTests extends grails.test.ControllerUnitTestCase {

	@Test
    void testAttributeControllerView() {
		mockDomain( Attribute, [
			new Attribute(name:"test1"),
			new Attribute(name:"test2")
		])
		
		this.controller.params.name = "test1"
		
		def model = this.controller.view()
		
		assertEquals "test1", model["attribute"]?.name
    }
}
